import Vue from "vue";
import Vuetify from "vuetify/lib/framework";

Vue.use(Vuetify);

const localThemeName = window.localStorage.getItem("theme");
const theme =
  localThemeName
    ? JSON.parse(window.localStorage.getItem("theme"))
    : {
        name: "default",
        colors: {
          primary: "#00BCD4",
          secondary: "#FFEB3B",
          thirdary: "#fff",
          fontwhite: "#fff",
          fontblack: "#000",
          overall: "#EEEEEE",
          appbar: "#00BCD4",
        },
      };
window.localStorage.setItem("theme", JSON.stringify(theme));

export default new Vuetify({
  theme: {
    themes: {
      light: theme.colors,
    },
  },
});
